<template>
  <div id="app">
    <div class="top">
      <img src="../assets/images/logo.png" alt="">
    </div>
    <div class="menu">
      <ul>
        <li><router-link to="/">首页</router-link> </li>
        <li><router-link to="/Allgoods">全部商品</router-link> </li>
      </ul>
    </div>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script scoped>

<style>
body{
  background-color: #ededed;
 
}
*{
   padding: 0;
  margin: 0;
}
.top{
  width: 100%;
  height: 58px;
  background: #111111;
display: flex;
align-items: center;
}
.top img{
  margin-left: 20px;
}
.menu{
  width: 100%;
  height: 74px;
  background: #fff;


}
ul{
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.menu ul{
  width: 1180px;
  margin: 0 auto;
  display: flex;
}
.menu ul li{
  text-align: center;
  line-height: 74px;
  flex: 1;
}
.menu ul li a{
  color: #333;
  text-decoration: none;
}
</style>
